# src_fname = '/tmp/aaa.jpg'
# dst_fname = '/tmp/bbb.jpg'
# src_fobj = open(src_fname,'rb')
# dst_fobj = open(dst_fname,'wb')
# while 1:
#     data = src_fobj.read(4096)
#     if not data:
#         break
#     dst_fobj.write(data)

# #/usr/local/bin/python3
# from sys import argv
# import hashlib
#
# def lianxi(fname):
#     m=hashlib.md5()
#     with open(fname,'rb') as f:
#         while 1:
#             data=f.read(4096)
#             if not data:
#                 break
#             m.update(data)
#     return m.hexdigest()
# if __name__ == '__main__':
#     result=lianxi(argv[1])
#     print(result)

# #/usr/local/bin/python3
# import hashlib
# from sys import argv
# def lianxi(fname):
#     m=hashlib.md5()
#     with open(fname,'rb') as f:
#         while 1:
#             data=f.read(4096)
#             if not data:
#                 break
#             m.update(data)
#     return m.hexdigest()
# if __name__ == '__main__':
#     result=lianxi(argv[1])
#     print(result)
# import hashlib
# from time import strftime
#
# def full_backup(src,dst,md5file):
#     '将整个目录打tar包就可'
#
#
#
# def incr_backup(src,dst,md5file):
#
# if __name__ == '__main__':
#     src='/tmp/demo/security'
#     dst='/tmp/demo/backup'
#     md5file='/tmp/demo/backup/md5.data'
#     if strftime('%a') == 'mon':
#         full_backup(src, dst, md5file)
#     else:
#         incr_backup(src, dst, md5file)
class Role:
    def __init__(self,name,weapon):
        self.name = name
        self.weapon = weapon


if __name__ == '__main__':
    lb = Role('无为', '阿弥陀佛')
    print(lb.name)
    print(lb.weapon)









